package com.cc.crm.timer.jdk;

import java.util.Timer;
import java.util.TimerTask;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2020-12-30 15:28
 */
public class JdkTimer {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("====开始执行定时任务====");
            }
        },0,2000);
    }
}
